/** \file AudioArts.h
    \author belot.nicolas
    Audio Out via arts
*/

#ifndef AUDIOARTS_H
#define AUDIOARTS_H 1

#include "Audio.h"
#include "artsc.h"
namespace libtrckr {
class AudioArts : public Audio {
/** \class libtrckr::AudioArts
    \brief output via aRts
*/
	public:
	AudioArts( );
	AudioArts(const AudioArts&);
	~AudioArts();
	void open( );
	audio_state_t state();
	void close( );

	int append(Buffer );

	void param(std::string, std::string);	
	void param(std::string, double);
	void param(std::string, int);

	//int getFrame(double *,int);
	double *getArtsBuffer();
	//static double* sbuffer;

	static 	double *_buffer;
	private:
	static int cnt;
	//void copy(Buffer);
	audio_state_t _state;
	arts_stream_t stream;
	//int start,end,size,capacity;

};

}

#endif

